package com.example.model;

import java.util.Date;

/**
 * @Classname CacheModel
 * @Description TODO
 * @Date 2022/7/28 21:57
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public class CacheModel {

    /**
     * key
     */
    private String key;

    /**
     * 值
     */
    private Object value;

    /**
     * 过期时间
     */
    private Date expireDate;

    /**
     * 创建时间
     */
    private Date creteDate;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public Date getExpireDate() {
        return expireDate;
    }

    public void setExpireDate(Date expireDate) {
        this.expireDate = expireDate;
    }

    public Date getCreteDate() {
        return creteDate;
    }

    public void setCreteDate(Date creteDate) {
        this.creteDate = creteDate;
    }

    public CacheModel() {
    }

    public CacheModel(String key, Object value, Date expireDate, Date creteDate) {
        this.key = key;
        this.value = value;
        this.expireDate = expireDate;
        this.creteDate = creteDate;
    }
}
